namespace TsCore.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class kdf : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Media",
                c => new
                    {
                        MediaId = c.Int(nullable: false, identity: true),
                        Medias = c.String(),
                        Match_MatchId = c.Int(),
                    })
                .PrimaryKey(t => t.MediaId)
                .ForeignKey("dbo.Matches", t => t.Match_MatchId)
                .Index(t => t.Match_MatchId);
            
        }
        
        public override void Down()
        {
            DropIndex("dbo.Media", new[] { "Match_MatchId" });
            DropForeignKey("dbo.Media", "Match_MatchId", "dbo.Matches");
            DropTable("dbo.Media");
        }
    }
}
